class AddForwardingTypeToCategories < ActiveRecord::Migration[5.0]
  def change
    change_table :cip_pages do |t|
      t.rename :page_type, :forwarding_type
    end

    change_table :cip_categories do |t|
      t.string :forwarding_type, default: :normal
      t.integer    :forwarding_page_id
      t.integer    :forwarding_category_id
      t.string     :forwarding_url
    end
  end
end
